package com.bdqn.Sj1;

public class Factory{
    public static Technology factory(String org){
        Technology technology=null;
        switch (org){
            case "+":
                technology = new Add();
                break;
            case "-":
                technology = new Subtract();
                break;
            case "*":
                technology = new Multiply();
                break;
            case "/":
                technology = new Except();
                break;
        }
        return technology;
    }
}
